#ifndef _KEYS_H_
#define _KEYS_H_

//#include "stm3210b_lk1_eval.h"
#include "stm32f10x_gpio.h"

#ifdef __cplusplus
 extern "C" {
#endif

/*The mask of  key*/
#define KEY_SEL    0x01
#define KEY_RIGHT  0x02
#define KEY_LEFT   0x04
#define KEY_DOWN   0x10
#define KEY_UP     0x08
#define KEY_2      0x20
#define KEY_3      0x40


extern	uint8_t	R_KeyNumber;
extern	uint8_t	R_KeyUp;
extern	uint8_t	R_KeyDown;
extern	uint8_t	R_KeyPress;

uint8_t         GetKeyNumber    (void);
void	        KeyFunction     (void);
void 	        Key_Scan        (void);
void 	        Key_GPIOInit    (void);
extern  void    TaskKbd         (void *pdata);

#ifdef __cplusplus
}
#endif

#endif/*_KEYS_H_*/
